package com.lagou.dao;

import com.lagou.pojo.User;

import java.util.List;

public interface IUserDao {
    public List<User> findAll() throws Exception;

    public User findByCondition(User user) throws Exception;

    public void add(User user) throws Exception;

    public void edit(User user) throws Exception;

    public void deleteById(Integer id) throws Exception;

    public void deleteByUsername(String username) throws Exception;
}
